var config = {
    //contextUrl:"/",
    contextUrl:"http://116.196.83.253:9001/",
	socketUrl:"http://116.196.83.253:9000/",
    token:"eyJhbGciOiJIUzI1NiJ9.eyJqdGkiOiJqd3Q5MDU3OTMwNjM2MjgxNzMzMTQiLCJpYXQiOjE1MDQ3OTI4NjksInN1YiI6IntcInVzZXJJZFwiOjEsXCJkZXZpY2VcIjp7XCJkZXZpY2VQbGF0Zm9ybVwiOlwiVU5LTk9XTlwiLFwiZGV2aWNlVHlwZVwiOlwiTk9STUFMXCIsXCJtb2JpbGVcIjpmYWxzZSxcIm5vcm1hbFwiOnRydWUsXCJ0YWJsZXRcIjpmYWxzZX19IiwiZXhwIjoxNTA0Nzk2NDY5fQ.BFdCgaIgeRg3C-CM-mIFEqyc3vz9Wk2U3o58kTglA70"
};
$(document).ajaxError(function (event, xhr, settings) {
    console.log("error=" + settings.url);
    alert(xhr.responseJSON.msg);
});
$(document).ajaxSuccess(function (event, xhr, settings) {
    console.log("success=" + settings.url);
    //console.log(xhr.responseJSON);
    if (!xhr.responseJSON.success) {
        alert(xhr.responseJSON.msg);
    }
});